package luob.study;

import java.util.Random;

public class Tank implements Movable {

	@Override
	public void move() {
		System.out.println("Tank moving...");
		try {
			Thread.sleep(new Random().nextInt(5000));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void move(Integer length, Integer speed) {
		System.out.println("Tank moving " + length + " @speed + " + speed);
		try {
			Thread.sleep(new Random().nextInt(5000));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void move(Integer length, Integer speed, String direction) {
		System.out.println("Tank moving " + direction + " " + length
				+ " @speed + " + speed);
		try {
			Thread.sleep(new Random().nextInt(5000));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void stop(Boolean force) {
		System.out.println("Tank Stop. Force: " + force);
	}

}
